package com.game.gateway.service;

import com.game.gateway.netty.ClientNettyServerBoot;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class NettyChannelStartListener implements ApplicationRunner {
    @Resource
    private ClientNettyServerBoot clientNettyServerBoot;

    @Override
    public void run(ApplicationArguments args) {
        this.clientNettyServerBoot.start();
    }
}